package com.dot.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.dot.dao.DwarfPageDao;
import com.dot.vo.DwarfBookVo;
import com.dot.vo.DwarfPageVo;

@Repository("dwarfPageDao")
public class DwarfPageDaoMybatisImpl extends BaseDaoImpl<DwarfPageVo> implements DwarfPageDao{

	@Autowired()
	private SqlSession sqlSession;
	
	public void save(DwarfPageVo dwarfPage) throws Exception {
		sqlSession.insert(getSqlName("save"), dwarfPage);
	}

	public List<DwarfPageVo> getByBookCode(String bCode) throws Exception {
		return sqlSession.selectList(getSqlName("getByBookCode"), bCode);
	}
	
	

}
